package com.wuchao.springs.tx;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author wuchao66
 * @Date 2023/10/9 14:57
 * @PackageName:com.wuchao.spring.tx
 * @ClassName: T
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
@Service
@Transactional
public class T {
   @Transactional(isolation = Isolation.DEFAULT,propagation = Propagation.REQUIRED)
    public void showtx(){
        System.out.println("我是事务切入点169");
    }
}
